package com.example.helloword.excel.test1;

import java.io.File;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import static com.example.helloword.excel.test1.ExcelUtil.createExcel;

public class Test {
    public static void main(String[] args) {
        List<Student> list = new ArrayList<>();
        Student student1 = new Student();
        student1.setName("小红");
        student1.setMale(false);
        student1.setHeight(167);

//        Student student2 = new Student();
//        student2.setName("小明");
//        student2.setMale(true);
//        student2.setHeight(185);
//
//        list.add(student1);
//        list.add(student2);

        for (int i = 0; i < 60000; i++) {
            list.add(student1);
        }
        File file = new File("11.xls");
        createExcel(list, file);
    }
}
